package com.jiaqiang.chatgpt.domain.other;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


@Data
public class OpenAiResponse<T> implements Serializable {

    private String object;
    private List<T> data;
    private Error error;

    /** 该字段是在获取文件列表时需要的. */
    @JsonProperty("has_more")
    private Boolean hasMore;

    @Data
    public static class Error {
        private String message;
        private String type;
        private String param;
        private String code;
    }

}
